package com.listeningframework.boot.autoconfigure.orm.jpa.search.filters;

import java.util.Arrays;

import com.listeningframework.boot.autoconfigure.orm.jpa.search.Operations;


public class StringSearchFilter extends SearchFilter<String> {
    public StringSearchFilter() {

    }

    public StringSearchFilter(String name, Operations operations, String... values) {
        setName(name);
        setOperations(operations);
        if (values != null && values.length > 0) {
            getValue().addAll(Arrays.asList(values));
        }
    }

    @Override
    public Class<String> getType() {
        return String.class;
    }
}
